﻿using Abp.Domain.Entities.Auditing;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyCompanyName.AbpZeroTemplate.Prm.Admin
{
    public class OperationLog : FullAuditedEntity<int>
    {
        //日志参数
        public virtual string Parameters { get; set; }
        //客户端IP
        public virtual string ClientIpAddress { get; set; }
        //pc名
        public virtual string ClientName { get; set; }
        //浏览器
        public virtual string BrowserInfo { get; set; }
        public virtual int HostId { get; set; }
        //操作备注
        public virtual string Note { get; set; }
        //系统
        public virtual string Platform { get; set; }
        public virtual HostOperation Operation { get; set; }
    }


    public enum HostOperation
    {
        项目 = 10,
        文档 = 20
    }



    public enum LogType
    {
        Other = 1,
        Doc上传 = 110,
        Doc查看 = 120,
        Doc编辑 = 130,
        Doc定版 = 140,
        Doc标签 = 145,
        Doc删除 = 150,
        Doc删除版本 = 155,
        Doc分享 = 160,
        Doc收回 = 170,
        Doc下载 = 180
    }
}
